package com.ygqh.baby.model;

import com.ygqh.baby.ao.ReturnReasonType;
import com.ygqh.baby.ao.ReturnType;
import com.ygqh.baby.utils.DateConvertUtils;

import java.util.Date;

/**
 * @Author: sunshuo
 * @Date: 2019/5/6 12:12
 * @Version: 1.0
 */
public class ReturnOrderReportReq {

	private ReturnType returnType;

	private ReturnReasonType returnReasonType;

	private String platformNo;

	private String productIds;

	private Date startDate;

	private Date endDate;

	public ReturnType getReturnType() {
		return returnType;
	}

	public void setReturnType(ReturnType returnType) {
		this.returnType = returnType;
	}

	public ReturnReasonType getReturnReasonType() {
		return returnReasonType;
	}

	public void setReturnReasonType(ReturnReasonType returnReasonType) {
		this.returnReasonType = returnReasonType;
	}

	public String getPlatformNo() {
		return platformNo;
	}

	public void setPlatformNo(String platformNo) {
		this.platformNo = platformNo;
	}

	public String getProductIds() {
		return productIds;
	}

	public void setProductIds(String productIds) {
		this.productIds = productIds;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public void initDate() {
		if (startDate != null) {
			startDate = DateConvertUtils.getDateStart(startDate);
		}
		if (endDate != null) {
			endDate = DateConvertUtils.addDay(DateConvertUtils.getDateStart(endDate), 1);
		}
	}
}
